import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'quill/dist/quill.snow.css';

import App from './App.vue'
import router from './router'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

// 引入 ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})

app.use(createPinia())
app.use(router)
// 引入 ElementPlus
app.use(ElementPlus) // 注意：需添加在 mount 之前

app.mount('#app')
